-- GENERATED SPELL FOR [Gor'tesh] --


function spell0_9176(pUnit, Event) --@Ground Smash,Self--
pUnit:FullCastSpellOnTarget(12734,pUnit)
pUnit:RegisterEvent('Sorts_9176', 2283, 1)
end

function spell1_9176(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(10101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9176', 621, 1)
end

function Sorts_9176(pUnit, Event)
local choix_sorts_9176 = math.random(0, 1)
if choix_sorts_9176 == 0 then
pUnit:RegisterEvent('spell0_9176', 1, 1)
end
if choix_sorts_9176 == 1 then
pUnit:RegisterEvent('spell1_9176', 1, 1)
end
end

function mob9176_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9176', math.random(1500, 3000), 1)
end

function mob9176_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9176_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9176_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9176, 1, 'mob9176_Action')
RegisterUnitEvent(9176, 2, 'mob9176_Leave')
RegisterUnitEvent(9176, 3, 'mob9176_Kill')
RegisterUnitEvent(9176, 4, 'mob9176_Die')
